/**
 * 文件名：****.java
 * 版权：Copyright Lightkit All Rights Reserved.
 * 描述：*****
 */
package com.lightkits.wms.domain.nontaskpickinglist.service;

import com.lightkits.common.db.entity.WmRequestHeader;
import com.lightkits.common.db.entity.WmRequestLine;
import com.lightkits.common.db.entity.event.BdEvent;
import com.lightkits.framework.common.model.CheckResult;
import com.lightkits.wms.dto.nontaskpicking.model.PickingHeaderDTO;
import com.lightkits.wms.dto.nontaskpicking.model.PickingLineDTO;

import java.util.List;

/**
 * CreateNonTaskPickParams
 *
 * @author jing.wei@hand-china.com
 * Created on 2019/5/9 15:51
 */
public interface CreateNonTaskPickParams {
    /**
     * 创建事件
     *
     * @param headerDTO 领料单头参数
     * @return BdEvent
     */
    CheckResult<BdEvent> createEvent(PickingHeaderDTO headerDTO);

    /**
     * 创建领料单头
     *
     * @param dto 领料单头参数
     * @return WmRequestHeader
     */
    CheckResult<WmRequestHeader> createRequestHeader(PickingHeaderDTO dto);

    /**
     * 创建领料单行
     *
     * @param lineDTOS 领料单行参数
     * @param headerId 领料单头Id
     * @return WmRequestLine
     */
    CheckResult<List<WmRequestLine>> createRequestLines(List<PickingLineDTO> lineDTOS, Long headerId);
}
